package com.xl.recognize;

import lombok.extern.slf4j.Slf4j;

/**
 * JdkVersion: 1.8
 * Author: lei·xie
 * Created: 2024/8/2 0002 15:22
 * Description:基础认识
 */
@Slf4j(topic = "c.Test2")
public class ThreadDemo02 {
    public static void main(String[] args) {
       /*Runnable runnable = new Runnable() {
           @Override
           public void run() {
               log.debug("running");
           }
       };
       Thread t = new Thread(runnable);
       t.setName("t2");
       t.start();
       log.debug("running");*/
       Thread t = new Thread(()->log.debug("running"),"t2");
       t.start();
       log.debug("running");
    }
}
